<?php
namespace Crm\Controller;

/**
 * 系统配置控制器
 *
 * @author SoChishun <14507247@qq.com>
 * @version 1.0
 * @since 1.0.0 <2015-3-27> SoChishun Added.
 */
class SiteConfigController extends AppbaseController {
    /**
     * 设置用户页面访问权限
     * @since 1.0 <2015-3-27> SoChishun Added.
     */
    public function assert_upr($rule = '') {
        
    }
    /**
     * 站点配置操作
     * @since 1.0.0 <2015-3-27> SoChishun Added.
     */
    public function siteconfig_edit() {
        $data=D('SiteConfig')->get_sys_site();
        $this->assign('data',$data);
        $this->display();
    }
    
    /**
     * 站点配置保存操作
     * @since 1.0 <2015-3-27> SoChishun Added.
     */
    public function siteconfig_edit_save(){
        $result=D('SiteConfig')->save_sys_site();
        $this->base_redirect_return($result, 'siteconfig_edit');
    }
}